<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    x:Class="OpenLS.UI.Themes.GroupButtonResources"                
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ribbon="clr-namespace:OpenLS.UI"
    >
  <!-- change name-->
  <Style TargetType='{x:Type Button}' x:Key='groupButton'>
    <Setter Property='HorizontalAlignment' Value='Right'/>
    <Setter Property='Width' Value='16'/>
    <Setter Property='Height' Value='16'/>
    <Setter Property='Focusable' Value='False'/>
    <Setter Property='Template'>
      <Setter.Value>
        <ControlTemplate TargetType='{x:Type Button}'>
          <Border BorderThickness='1' Name='outerBd'>
            <Grid>
              <Rectangle Name='bg' Margin='0'/>
              <Path Margin='1' Data='M 3.5,7.5 L3.5,3.5 L7.5,3.5 M6.5,5.5 L6.5,5.5 M9.5,5.5 L9.5,9.5 L6.5,9.5' 
                    Stroke='White' StrokeThickness='1' StrokeStartLineCap ='Square' StrokeEndLineCap='Square' Name='shadowPath'/>
              <Path Margin='1' Data='M 2.5,7.5 L2.5,2.5 L7.5,2.5 M5.5,5.5 L5.5,5.5 M6.5,6.5 L6.5,8.5 L8.5,8.5 M5.5,8.5 L8.5,8.5 L8.5,5.5 M8.5,6.5 L7.5,6.5 L7.5,7.5'
                    Stroke='#FF668EAF' StrokeThickness='1' StrokeStartLineCap ='Square' StrokeEndLineCap='Square' />
              <Border BorderThickness='1' Name='innerBd' >
              </Border>
            </Grid>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property='IsMouseOver' Value='True'>
              <Setter Property ='BorderBrush' Value='#FFDBCE99' TargetName ='outerBd'/>
              <Setter Property ='BorderBrush' Value='White' TargetName ='innerBd'/>
              <Setter Property ='Fill' TargetName ='bg'>
                <Setter.Value>
                  <LinearGradientBrush EndPoint="0,1" StartPoint="0,0" >
                    <GradientStop Offset="0" Color="#FFFFFCDF" />
                    <GradientStop Offset="0.31746031746031744" Color="#FFFFF7BD" />
                    <GradientStop Offset="0.46031746031746029" Color="#FFFEF7D3" />
                    <GradientStop Offset="0.53968253968253965" Color="#FFFFD975" />
                    <GradientStop Offset="1" Color="#FFFFE398" />
                  </LinearGradientBrush>
                </Setter.Value>
              </Setter>
              <Setter Property="Opacity" Value="0.5" TargetName="shadowPath"/>
            </Trigger>
            <MultiTrigger>
              <MultiTrigger.Conditions>
                <Condition Property ="IsMouseOver" Value="True"/>
                <Condition Property ="IsPressed" Value="True"/>
              </MultiTrigger.Conditions>
              <Setter Property ='BorderBrush' Value='#FF9A8F63' TargetName ='outerBd'/>
              <Setter Property ='BorderBrush' Value='#44FFFFFF' TargetName ='innerBd'/>
              <Setter Property ='Fill' TargetName ='bg'>
                <Setter.Value>
                  <LinearGradientBrush EndPoint="0,1" StartPoint="0,0" >
                    <GradientStop Offset="0" Color="#FFDCD1B2" />
                    <GradientStop Offset="0.34920634920634919" Color="#FFE5D2A7" />
                    <GradientStop Offset="0.44444444444444442" Color="#FFEAC68D" />
                    <GradientStop Offset="0.77777777777777779" Color="#FFFFB73D" />
                    <GradientStop Offset="1" Color="#FFFFCC4E" />
                  </LinearGradientBrush>
                </Setter.Value>
              </Setter>
              <Setter Property="Opacity" Value="0.5" TargetName="shadowPath"/>

            </MultiTrigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <!--<DataTemplate DataType="{x:Type ribbon:CommandHeader}">
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
      <ContentPresenter Content ="{Binding Content}" Margin ="16 0 16 0"/>
      <Button Command ="{Binding Command}" Style="{StaticResource snapButton}" CommandParameter="{Binding CommandParameter}"/>
    </Grid>
  </DataTemplate>
-->
</ResourceDictionary>